/**
 * @param {Object} token
 * 这个类用来存放用户的登录token，不设置有效时长默认浏览器退出后失效
 */
import Cookie from 'js-cookie'

const Token_key="retire_token_key";

export function setToken(token){
  return Cookie.set(Token_key,token);
}

export function getToken(){
  return Cookie.get(Token_key);
}

export function delToken(){
  return Cookie.remove(Token_key);
}

export function setCookie(key,value){
  return Cookie.set(key,value);
}
export function getCookie(key){
  return Cookie.get(key);
}

export function delCookie(key){
  return Cookie.remove(key);
}
